package EntityPack;

import MapPack.Cell;
import MaterialPack.Energy;
import MaterialPack.Oxygen;
import MapPack.Map;
import ToolPack.FluidContainer;
import com.badlogic.gdx.graphics.Texture;

/**
 * Created by Aaron on 8/9/2014.
 */
public class Lander extends Structure {

    private FluidContainer oxygenTank;
    private float oxygenCapacity = 100.0f;
    private float initialOxygen = 100.0f;
    private float oxygenTransferRate = 0.5f;
    private FluidContainer energyContainer;
    private float energyCapacity = 5000.0f;
    private float energy = 5000.0f;
    private float energyTransferRate = 10.0f;

    private static final int height = 2;
    private static final int width = 2;
    private static Texture texture = new Texture("Lander64.png");

    public Lander (Map map, Cell position) {
        super(map, position, height, width);
        this.oxygenTank = new FluidContainer(this.oxygenCapacity,
                this.oxygenTransferRate,
                Oxygen.class,
                this.initialOxygen);
        this.energyContainer = new FluidContainer(this.energyCapacity,
                this.energyTransferRate,
                Energy.class,
                this.energy);
        this.containers.add(oxygenTank);
        this.containers.add(energyContainer);
    }

    public Texture getTexture ( ) {
        return this.texture;
    }

    public FluidContainer getOxygenTank ( ) {
        return this.oxygenTank;
    }

    public FluidContainer getEnergyContainer ( ) {
        return this.energyContainer;
    }

}
